package com.inspur.edp.cef.designtime.api.operation;

/**
 * The Definition Of Executinig Data Status For Determination or Validation
 *
 * @ClassName: ExecutingDataStatus
 * @Author: Benjamin Gong
 * @Date: 2021/1/11 17:13
 * @Version: V1.0
 */
public enum ExecutingDataStatus
{
	None(0),
	added(1),
	Modify(2),
	Deleted(4);

	private int intValue;
	private static java.util.HashMap<Integer, ExecutingDataStatus> mappings;
	private synchronized static java.util.HashMap<Integer, ExecutingDataStatus> getMappings()
	{
		if (mappings == null)
		{
			mappings = new java.util.HashMap<Integer, ExecutingDataStatus>();
		}
		return mappings;
	}

	private ExecutingDataStatus(int value)
	{
		intValue = value;
		ExecutingDataStatus.getMappings().put(value, this);
	}

	public int getValue()
	{
		return intValue;
	}

	public static ExecutingDataStatus forValue(int value)
	{
		return getMappings().get(value);
	}
}